package com.dhcc.bpm.common.utils;

import lombok.Data;

/**
 * Created by zhanghang on 2020/2/26
 */
@Data
public class Head {
    private String ResponseCode;
    private String ErrorMessage;


    public static Head success() {
        Head head = new Head();
        head.setResponseCode("0");
        return head;
    }

    public static Head error(String msg) {
        Head head = new Head();
        head.setResponseCode("1");
        head.setErrorMessage(msg);
        return head;
    }
}
